﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Payroll.Biz.Legacy.Models
{
    public class TimeCard
    {
        public Guid Id { get; private set; }

        public Guid EmployeeId { get; private set; }

        public DateTime Date { get; private set; }

        public double Hours { get; private set; }

        public TimeCard(Guid id, Guid employeeId, DateTime date, double hours)
        {
            Id = id;
            EmployeeId = employeeId;
            Date = date;
            Hours = hours;
        }

        public override string ToString()
        {
            return $"{{{nameof(Id)}={Id.ToString()}, {nameof(EmployeeId)}={EmployeeId.ToString()}, {nameof(Date)}={Date.ToString()}, {nameof(Hours)}={Hours.ToString()}}}";
        }
    }
}
